<?php
declare (strict_types=1);

namespace app\command;

use app\common\service\OrderService;
use think\console\Command;
use think\console\Input;
use think\console\Output;

class OrderCommand extends Command
{
    protected function configure()
    {
        // 指令配置
        $this->setName('ordercommand')
            ->setDescription('the ordercommand command');
    }

    protected function execute(Input $input, Output $output)
    {
        //自定义代码输出
        while (true) {
            OrderService::CheckOrderStatus();
        }
    }
}
